var path = require('path')
module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: [
        path.resolve(__dirname, './src/assets/style/theme.scss')
      ]
    }
  },
  publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
  assetsDir: 'static',
  productionSourceMap: false,
  runtimeCompiler: true,
  configureWebpack: {
    resolve: {
      alias: {
        _style: `@/assets/style`,
        ala: `@/service/ala.js`,
        api: `@/service/api.js`,
        admin: `@/service/admin.js`
      }
    },
    devServer: {
      host: '0.0.0.0',
      port: '2008',
      disableHostCheck: true
    }
  },
  chainWebpack(config) {

  },
  transpileDependencies: ['iview']
}
